package com.yami.shop.mystery.common.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.common.util.PageParam;
import com.yami.shop.mystery.common.dao.MysteryBoxUserArkMapper;
import com.yami.shop.mystery.common.model.MysteryBoxUserArk;
import com.yami.shop.mystery.common.service.MysteryBoxUserArkService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author wxf
 * @date 2023/4/14 14:23
 */
@Service
@AllArgsConstructor
public class MysteryBoxUserArkServiceImpl extends ServiceImpl<MysteryBoxUserArkMapper, MysteryBoxUserArk> implements MysteryBoxUserArkService {

    private final MysteryBoxUserArkMapper mapper;

    @Override
    public IPage<MysteryBoxUserArk> selectNeedInitializePage(PageParam<MysteryBoxUserArk> page, MysteryBoxUserArk param) {
        return mapper.selectNeedInitializePage(page, param);
    }

    @Override
    public long countByBid(Long boxId) {
        return mapper.countByBid(boxId);
    }
}
